/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.config.entity.login;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * QQ登录配置Entity
 * @author JiangYongKang
 * @version 2016-12-14
 */
public class ConfigLoginQQ extends DataEntity<ConfigLoginQQ> {
	
    private static final long serialVersionUID = 1L;
    private Long appid;     // APPID
    private String secret;      // secret
    private String returnUrl;       // return_url
    
    public ConfigLoginQQ() {
        super();
    }

    public ConfigLoginQQ(String id){
        super(id);
    }

    public Long getAppid() {
        return appid;
    }

    public void setAppid(Long appid) {
        this.appid = appid;
    }
    
    @Length(min=0, max=255, message="secret长度必须介于 0 和 255 之间")
    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }
    
    @Length(min=0, max=50, message="return_url长度必须介于 0 和 50 之间")
    public String getReturnUrl() {
        return returnUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }
}